import axios from "@/utils/index.js";

export function usergetToolList() {
    return axios.get("/sysUser/list");
  }

  export function insertgetToolList(data) {
    return axios.post("/sysUser/insert",data);
  }

  export function updategetToolList(data) {
    return axios.post("/sysUser/update", data );
  }
  export function deletegetToolList(id) {
    return axios.post("/sysUser/delete",{ id });
  }
  // 修改密码
  export function editgetToolList(userData) {
    console.log(userData,`userData`);
    
    return axios.post("/sysUser/updatePw", userData);
  }